import request from '@/utils/request'

let SupplierApi = {
  /*供应商列表*/
  supplierList(data, errorback) {
    return request._post('/supplier/supplier.supplier/index', data, errorback);
  },

  /*供应商审核*/
  audit(data, errorback) {
    return request._post('/supplier/supplier.supplier/audit', data, errorback);
  },
  /*获取主营分类*/
  Category(data, errorback) {
    return request._post('/supplier/supplier.Category/index', data, errorback);
  },
  /*添加分类*/
  addCategory(data, errorback) {
    return request._post('/supplier/supplier.Category/add', data, errorback);
  },
  /*编辑分类*/
  editCategory(data, errorback) {
    return request._post('/supplier/supplier.Category/edit', data, errorback);
  },
  /*删除分类*/
  deleteCategory(data, errorback) {
    return request._post('/supplier/supplier.Category/delete', data, errorback);
  },
  /*押金列表*/
  supplierOrder(data, errorback) {
    return request._post('/supplier/supplier.Order/index', data, errorback);
  },
  /*押金列表*/
  refundList(data, errorback) {
    return request._post('/supplier/supplier.supplier/refund', data, errorback);
  },
  /*退押金操作*/
  refundSubmit(data, errorback) {
    return request._post('/supplier/supplier.supplier/submit', data, errorback);
  },
  /*服务保障申请列表*/
  securityList(data, errorback) {
    return request._post('/supplier/supplier.supplier/security', data, errorback);
  },
  /*服务保障操作*/
  securityVerify(data, errorback) {
    return request._post('/supplier/supplier.supplier/verify', data, errorback);
  },
  /*获取广告分类*/
  SecurityList(data, errorback) {
    return request._post('/supplier/supplier.Security/index', data, errorback);
  },
  /*添加分类*/
  addSecurity(data, errorback) {
    return request._post('/supplier/supplier.Security/add', data, errorback);
  },
  /*编辑分类*/
  editSecurity(data, errorback) {
    return request._post('/supplier/supplier.Security/edit', data, errorback);
  },
  /*删除分类*/
  deleteSecurity(data, errorback) {
    return request._post('/supplier/supplier.Security/delete', data, errorback);
  },
  /*开启禁止*/
  supplierRecycle(data, errorback) {
    return request._post('/supplier/supplier.supplier/recycle', data, errorback);
  },
  /*产品选择列表*/
  chooseLists(data, errorback) {
    return request._post('/supplier/supplier.supplier/lists', data, errorback);
  },
  getTreeList(data, errorback) {
    return request._post('/supplier/supplier.region/getTreeList', data, errorback);
  },
  getCityList(data, errorback) {
    return request._post('/supplier/supplier.region/getCityList', data, errorback);
  }
}
export default SupplierApi;
